home *** CD-ROM | disk | FTP | other *** search
/ J-Mac Electronics & Home Comics / J-Mac Electronics & Home Comics.iso / mac / J-MAC / JMACMENU.Dxr / 00047.ls < prev    next >
Encoding:
Text File  |  1998-01-22  |  3.4 KB  |  179 lines

  1. global g_no, jumplistkey, volset, mno, spno, btnh, btnv, i, halfpno, linkname
  2.  
  3. on startMovie
  4.   set mycursor to [1, 2]
  5.   set the cursor of sprite 7 to mycursor
  6.   set the cursor of sprite 8 to mycursor
  7.   set the cursor of sprite 11 to mycursor
  8.   set the cursor of sprite 12 to mycursor
  9.   set the cursor of sprite 13 to mycursor
  10.   repeat with i = 17 to 27
  11.     set the cursor of sprite i to mycursor
  12.   end repeat
  13.   set jumplistkey to ["M1", "M2", "M3", "M4", "M5"]
  14.   set halfpno to 62
  15.   set volset to the soundLevel
  16.   if the soundEnabled = 0 then
  17.     set the soundEnabled to 1
  18.   end if
  19. end
  20.  
  21. on donext
  22.   if (g_no + 1) = 6 then
  23.     set g_no to 0
  24.   end if
  25.   go(getAt(jumplistkey, g_no + 1))
  26. end
  27.  
  28. on doback
  29.   if (g_no - 1) = 0 then
  30.     set g_no to 6
  31.   end if
  32.   go(getAt(jumplistkey, g_no - 1))
  33. end
  34.  
  35. on movielink
  36.   sound stop 2
  37.   go(1, linkname)
  38. end
  39.  
  40. on doexit
  41.   sound stop 2
  42.   halt()
  43. end
  44.  
  45. on volcrt
  46.   puppetSprite(31, 1)
  47.   set the memberNum of sprite 31 to volset + 13
  48.   updateStage()
  49.   set the soundLevel to volset
  50. end
  51.  
  52. on crtopen
  53.   puppetSprite(9, 1)
  54.   repeat while the stillDown
  55.     set the memberNum of sprite 9 to 4
  56.     updateStage()
  57.   end repeat
  58.   set the memberNum of sprite 9 to 3
  59.   updateStage()
  60.   puppetSprite(9, 0)
  61. end
  62.  
  63. on crtquit
  64.   puppetSprite(10, 1)
  65.   repeat while the stillDown
  66.     set the memberNum of sprite 10 to 6
  67.     updateStage()
  68.   end repeat
  69.   set the memberNum of sprite 10 to 5
  70.   updateStage()
  71.   puppetSprite(10, 0)
  72. end
  73.  
  74. on crtmg
  75.   set btnh to the locH of sprite spno
  76.   set btnv to the locV of sprite spno
  77.   puppetSprite(spno, 1)
  78.   repeat while the stillDown
  79.     set the locH of sprite spno to btnh + 2
  80.     set the locV of sprite spno to btnv + 1
  81.     updateStage()
  82.   end repeat
  83.   set the locH of sprite spno to btnh
  84.   set the locV of sprite spno to btnv
  85.   updateStage()
  86.   puppetSprite(spno, 0)
  87. end
  88.  
  89. on crthalf
  90.   puppetSprite(5, 1)
  91.   set the memberNum of sprite 5 to halfpno + mno
  92.   updateStage()
  93. end
  94.  
  95. on crtback
  96.   puppetSprite(15, 1)
  97.   repeat while the stillDown
  98.     set the memberNum of sprite 15 to 25
  99.     updateStage()
  100.   end repeat
  101.   set the memberNum of sprite 15 to 24
  102.   updateStage()
  103.   puppetSprite(15, 0)
  104. end
  105.  
  106. on crtnext
  107.   puppetSprite(14, 1)
  108.   repeat while the stillDown
  109.     set the memberNum of sprite 14 to 23
  110.     updateStage()
  111.   end repeat
  112.   set the memberNum of sprite 14 to 22
  113.   updateStage()
  114.   puppetSprite(14, 0)
  115. end
  116.  
  117. on crtclose2
  118.   puppetSprite(16, 1)
  119.   repeat while the stillDown
  120.     set the memberNum of sprite 16 to 27
  121.     updateStage()
  122.   end repeat
  123.   set the memberNum of sprite 16 to 26
  124.   updateStage()
  125.   puppetSprite(16, 0)
  126. end
  127.  
  128. on crtyes
  129.   puppetSprite(9, 1)
  130.   repeat while the stillDown
  131.     set the memberNum of sprite 9 to 30
  132.     updateStage()
  133.   end repeat
  134.   set the memberNum of sprite 9 to 29
  135.   updateStage()
  136.   puppetSprite(9, 0)
  137.   puppetSprite(5, 0)
  138. end
  139.  
  140. on crtno
  141.   puppetSprite(10, 1)
  142.   repeat while the stillDown
  143.     set the memberNum of sprite 10 to 32
  144.     updateStage()
  145.   end repeat
  146.   set the memberNum of sprite 10 to 31
  147.   updateStage()
  148.   puppetSprite(10, 0)
  149.   puppetSprite(5, 0)
  150. end
  151.  
  152. on backmno
  153.   if (mno > 0) and (mno < 9) then
  154.     puppetTransition(6, 8)
  155.     go("M1")
  156.     exit
  157.   end if
  158.   if (mno > 8) and (mno < 17) then
  159.     puppetTransition(6, 8)
  160.     go("M2")
  161.     exit
  162.   end if
  163.   if (mno > 16) and (mno < 25) then
  164.     puppetTransition(6, 8)
  165.     go("M3")
  166.     exit
  167.   end if
  168.   if (mno > 24) and (mno < 33) then
  169.     puppetTransition(6, 8)
  170.     go("M4")
  171.     exit
  172.   end if
  173.   if (mno > 32) and (mno < 41) then
  174.     puppetTransition(6, 8)
  175.     go("M5")
  176.     exit
  177.   end if
  178. end
  179.